import { createRouter, createWebHistory } from 'vue-router'
import LevelView from '../views/LevelView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: LevelView,
    },
    {
      path: '/addlevel',
      name: 'addlevel',
      component: () => import('../views/AddLevelView.vue'),
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('../views/UserView.vue'),
    },
    {
      path: '/adduser',
      name: 'adduser',
      component: () => import('../views/AddUserView.vue'),
    },
    {
      path: '/updateuser',
      name: 'updateuser',
      component: () => import('../views/UpdateUserView.vue'),
    },
  ],
})

export default router
